const app = getApp()
Page({

    /**
     * 页面的初始数据
     */
    data: {
        imgUrl: [{
                id: 1,
                url: '/static/imags/swiper/banner0.jpg'
            },
            {
                id: 2,
                url: '/static/imags/swiper/banner1.jpg'
            },
            {
                id: 3,
                url: '/static/imags/swiper/banner2.jpg'
            },
            {
                id: 4,
                url: '/static/imags/swiper/banner3.jpg'
            }
        ],
        state: {
            access: {
                title: "门禁",
                appList: [{
                        imgUrl: '/static/imags/nav/access.png',
                        name: '通行权限',
                        id: 1
                    },
                    {
                        imgUrl: '/static/imags/nav/access.png',
                        name: '设备管理',
                        id: 2
                    },
                    {
                        imgUrl: '/static/imags/nav/access.png',
                        name: '进出记录',
                        id: 3
                    },
                    {
                        imgUrl: '/static/imags/nav/access.png',
                        name: '时段管理',
                        id: 4
                    },
                    {
                        imgUrl: '/static/imags/nav/access.png',
                        name: '门禁监控',
                        id: 5
                    },
                    {
                        imgUrl: '/static/imags/nav/access.png',
                        name: '高级门禁',
                        id: 6
                    },
                ]
            },
            attend: {
                title: '考勤',
                appList: [{
                        imgUrl: '/static/imags/nav/attend.png',
                        name: '考勤规则',
                        id: 1
                    },
                    {
                        imgUrl: '/static/imags/nav/attend.png',
                        name: '考勤明细',
                        id: 2
                    },
                    {
                        imgUrl: '/static/imags/nav/attend.png',
                        name: '考勤记录',
                        id: 3
                    },
                    {
                        imgUrl: '/static/imags/nav/attend.png',
                        name: '考勤排班',
                        id: 4
                    },
                    {
                        imgUrl: '/static/imags/nav/attend.png',
                        name: '考勤点',
                        id: 5
                    },
                    {
                        imgUrl: '/static/imags/nav/attend.png',
                        name: '考勤组',
                        id: 6
                    },
                ],
            },
            pos: {
                title: '消费',
                appList: [{
                        imgUrl: '/static/imags/nav/pos.png',
                        name: '钱宝账户',
                        id: 1
                    },
                    {
                        imgUrl: '/static/imags/nav/pos.png',
                        name: '账户类别',
                        id: 2
                    },
                    {
                        imgUrl: '/static/imags/nav/pos.png',
                        name: '消费设备',
                        id: 3
                    },
                    {
                        imgUrl: '/static/imags/nav/pos.png',
                        name: '餐厅管理',
                        id: 4
                    }
                ],
            },
        },
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})